import com.ruoyi.wx.service.WxService;
import com.wechat.pay.java.service.partnerpayments.jsapi.JsapiServiceExtension;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description: TODO
 * @Create by: jacob
 * @Date: 2025/7/19
 * 遇见未来的自己
 */
@RequestMapping("testpay")
public class TestController {
    /** 商户号 */
    public static String merchantId = "190000****";

    /** 商户API私钥路径 */
    public static String privateKeyPath = "/Users/yourname/your/path/apiclient_key.pem";

    /** 商户证书序列号 */
    public static String merchantSerialNumber = "5157F09EFDC096DE15EBE81A47057A72********";

    /** 商户APIV3密钥 */
    public static String apiV3Key = "...";
    public static JsapiServiceExtension service;

    @Autowired
    private WxService wxService;
//        public AjaxResult testPay(){
////            // 获取支付者openid
////            JSONObject json = wxService.getLoginAccessToken(code);
////            String access_token = json.getString("access_token");
////            String openid = json.getString("openid");
////
////
////
////
////
////
////
////            return AjaxResult.success(prepay);
//        }
}
